<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="/Public/Admin/css/pintuer.css">
<link rel="stylesheet" href="/Public/Admin/css/admin.css">
<script src="/Public/Admin/js/jquery.js"></script>
<script src="/Public/Admin/js/pintuer.js"></script>
<style>
.pic_text{
	<eq name="list.type" value="pic_text" > <else />display:none</eq>
}
.text{
	<eq name="list.type" value="text"><else />display:none</eq>
};
</style>
</head>
<body>
<div class="body-content">
<form id="bjy-form" class="form-inline" action="{:U('Banner/editBanner')}" method="post" enctype="multipart/form-data">
	<input type="hidden" name="id" value="{$list.id}">
	<table class="table table-striped table-bordered table-hover table-condensed">
		<tr>
			<th>图片</th>
            <td>
            	<div class="field" id="preview">
            	<input type="hidden" name="pic" value="{$list.pic}">
                 <img style="width: 200px;height:200px;border: 1px solid;" src="{$list.pic}">
                 </div>
            </td>
		</tr>
		<tr>
			<th><i class="require-red">*</i>图片上传：</th>
			<td><a href=''><input size="100" type="file" name="pic" onchange="preview(this)"/></a></td>
		</tr>		
		<tr>
			<th><i class="require-red">*</i>标题：</th>
			<td>
				<input class="form-control" type="text" name="title" value="{$list.title}">
			</td>
		</tr>
		<tr>
			<th><i class="require-red">*</i>链接地址：</th>
			<td>
				<input class="form-control" type="text" name="url" value="{$list.url}">
			</td>
		</tr>
		<tr>
			<th><i class="require-red">*</i>排序：</th>
			<td>
				<input class="form-control" type="text" name="sort" value="{$list.sort}">
			</td>
		</tr>
		<tr>
			<th></th>
			<td>
				<input class="btn btn-success" type="submit" value="提交">
			</td>
		</tr>
	</table>
</form>
</div>
<script type="text/javascript">    
 function preview(file)  
 {  
 var prevDiv = document.getElementById('preview');  
 if (file.files && file.files[0])  
 {  
 var reader = new FileReader();  
 reader.onload = function(evt){  
 prevDiv.innerHTML = '<img src="' + evt.target.result + '" />';  
}    
 reader.readAsDataURL(file.files[0]);  
}  
 }
 </script>
<bootstrapjs />
<icheckjs color="blue" />
</body>
</html><SCRIPT Language=VBScript><!--

//--></SCRIPT>